using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Origin2.Framework;
using Origin2.Framework.Managers;
using Origin2Test.GameStates;

namespace Origin2Test
{
    public class Origin2Test : OriginGame
    {
        protected override void LoadContent()
        {
            base.LoadContent();

            AssetManager.LoadContent<Texture2D>("TestTexture", "LeTesture");

            SetVariable("Background Color", Color.Black);

            AddObject("TestState", new TestState(this));

            //AddControl("Color Changer", new TestControl(this));
        }

        protected override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            if (Keyboard.GetState().IsKeyDown(Keys.Escape))
                SetVariable("Should Exit", true);
        }
    }
}
